package com.deft.design.combination.model.aggregates;

import com.deft.design.combination.model.vo.TreeNode;
import com.deft.design.combination.model.vo.TreeRoot;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

/**
 * 聚合对象，包含组织树信息
 * @author Hide丶love
 * @date 2022/04/27
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class TreeRich {

    /**
     * 树根节点
     */
    private TreeRoot treeRoot;

    /**
     * 树节点ID -> 子节点
     */
    private Map<Long, TreeNode> treeNodeMap;
}
